<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body  onresize="resizeGrid();">
	<div id='${m.prefix}_o_maddDiv'>
	   <div id='${m.prefix}_o_mparentPanel' title="${m.panelTitle}">
	   		<div>
				<table cellpadding="0" cellspacing="0" style="width: 100%;height:100%;padding-top: 10px; ">
					<tr>
						<td>
							<div id="${m.prefix}_totalNum" class="shangXia" style="float: left;visibility:hidden">
								<a style="cursor: pointer;" onclick="upDownPage(this)" sflag="o" pre='${m.prefix}' dsId='${m.dsId}' flag="upPage">上一条</a>|<a style="cursor: pointer;"  sflag="o" onclick="upDownPage(this)" pre='${m.prefix}' dsId='${m.dsId}' flag="downPage">下一条</a><span id="currentPage"></span>/<span id="lastPage"></span>
							</div>
							<!-- 用于显示的单据的的状态图片 -->
							<div style="float: left; display: none;position: absolute; " id="${m.prefix}_imageShow">
								<span><img src=""  id="showImg" style="display:block;margin-left:420px;position: absolute;z-index: 2"/></span>
							</div>
							<div style="vertical-align: top; text-align:right;  width: 90%;margin-right: 15px;" id="${m.prefix}_M_UBUTN">
								<c:forEach items="${m.butnList[0]}" var="butn" >
									<a class='easyui-linkbutton' onclick="${butn.scriptFunc}" sflag="o"  code='${m.prefix}_${butn.butCode}' pre='${m.prefix}' flag='3' dsid='${m.dsId}' items='${m.items}'  right='${butn.butRight}'>${butn.butnName}</a>
								</c:forEach>
								<c:forEach items="${m.preButnList[0]}" var="butna">
									<a class='easyui-linkbutton' onclick="${butna.scriptFunc}" code='${butna.butCode}'  pre='${m.prefix}' flag='3' dsid='${m.dsId}' items='${m.items}' right='${butna.butRight}'>${butna.butnName}</a>
								</c:forEach>
								<a class='easyui-linkbutton' onclick="return closePanel(this)" sflag="o"   pre='${m.prefix}' dsid='${m.dsId}' code ='rollBack' style="float: right;">返回</a>
							</div> 
						</td>
					</tr>
			    </table>
			</div>
			<div id="${m.prefix}_costPanel2" class="easyui-tabs" fit="true" border="false" style="width: 100%;">  
			        <div title="${m.panelTitle}">  
						<form id='${m.prefix}_maddPEForm' style="padding-left: 20px;padding-top: 10px;" >
<!--							<table class='tableBord' id='${m.prefix}_maddPETb'  style="padding-left: 10px;"></table>-->
							<div class='tableBord' id='${m.prefix}_maddPETb'  style="padding-left: 10px;"></div>
						</form>
			        </div>  
			        <c:forEach begin="0" end="${m.items-1}" var="s"  >
			        	  <div title="${m.titles[s]}">
							 <table cellpadding="0" cellspacing="0" style="width:100%;padding: 28px;">
								<tr>
									<td align="left" style="text-align: left;">
										<div id="${m.prefix}_BUTNS${s}">
											<c:forEach items="${m.preButnList[s+1]}" var="butn">
												<a class='easyui-linkbutton' onclick="${butn.scriptFunc}" id='${butn.butCode}' right='${butn.butRight}'>${butn.butnName}</a>
											</c:forEach>
										</div>
									</td>
								</tr>
								<tr>
									<td style="padding-top: 10px;"  >
										<table id="${m.prefix}_mPanelAdd${s}"></table>
									</td>
								</tr>
							</table>
						</div>
			        </c:forEach>
			 </div>
		</div>
		<input type="hidden" id="${m.prefix}_m_dsId" value="${m.dsId}"/>
		<input type="hidden" id="${m.prefix}_m_type" value="${m.type}"/>
		<input type="hidden" id="${m.prefix}_m_jsUrl" value="${m.jsUrl}"/>
		<input type="hidden" id="${m.prefix}_m_prefix" value="${m.prefix}"/>
		<input type="hidden" id="${m.prefix}_m_initFunc" value="${m.initFunc}"/>
		<input type="hidden" id="${m.prefix}_m_ainitFunc" value="${m.ainitFunc}"/>
		<input type="hidden" id="${m.prefix}_m_keyValue" value="${m.keyValues}"/>
	</div>
</body>
</html>